package com.qhhc.hospital.mapper;

import com.qhhc.hospital.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper {
    public int insertOrders(Orders orders);
    
    public List<Orders> selectAllOrders();
    
    public Orders selectOrdersById(@Param("o_id") Integer oId);
    
    public List<Orders> selectOrdersByPatientId(@Param("p_id") Integer pId);
    
    public List<Orders> selectOrdersByDoctorId(@Param("d_id") Integer dId);
    
    public int updateOrders(Orders orders);
    
    public int deleteOrders(@Param("o_id") Integer oId);
}